var express = require('express');
var router = express.Router();
const admin = require('../dao/admin_dao')


/* GET users listing. */
router.get('/', function(req, res, next) {
    res.send('我是admin');
});
// 查询
router.get('/getUserByTypeChar',function (req,res,next) {
    admin.getUserByTypeChar(req,res)
});
// 用户总表查询
router.get('/getUserData',function (req,res,next) {
    admin.getUserData(req,res)
})


// 获取菜单列表
router.get('/getMenuData',function (req,res,next) {
    admin.getMenuData(req,res)
})

module.exports = router;